package bp.net;

public class Nerve {
	
	protected Layer layer;
	protected double output;
	protected double input;
	
	public Nerve(Layer layer){
		this.layer = layer;
	}

	public void setInput(double input) {
		this.input = input;
	}
	
	public Layer getLayer() {
		return layer;
	}

	public double getOutput() {
		return output;
	}

	public double getInput() {
		return input;
	}

	public void compute() {
		this.output = this.input;
	}
	
}
